home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / web / fweb / fweb-1.30 / manual / demo4.tex < prev    next >
Texinfo Document  |  1993-06-16  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Texinfo Document (document/texInfo).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Texinfo Document (document/texInfo) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file TeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 46 57 45 41 56 45 | 20 76 31 2e 33 30 20 28 |% FWEAVE| v1.30 (|
|00000010| 4d 61 79 20 31 35 2c 20 | 31 39 39 33 29 0a 0a 5c |May 15, |1993)..\|
|00000020| 69 6e 70 75 74 20 66 77 | 65 62 6d 61 63 2e 73 74 |input fw|ebmac.st|
|00000030| 79 0a 0a 5c 57 62 65 67 | 69 6e 5b 5d 7b 61 72 74 |y..\Wbeg|in[]{art|
|00000040| 69 63 6c 65 7d 7b 31 65 | 6d 7d 7b 31 65 6d 7d 7b |icle}{1e|m}{1em}{|
|00000050| 64 65 6d 6f 34 2e 63 74 | 73 7d 7b 7b 5c 26 7d 7b |demo4.ct|s}{{\&}{|
|00000060| 5c 7c 7d 7b 5c 5c 7d 7b | 5c 5c 7d 7b 5c 5c 7d 7b |\|}{\\}{|\\}{\\}{|
|00000070| 5c 40 7d 7b 5c 2e 7d 7b | 5c 2e 7d 7d 0a 0a 25 20 |\@}{\.}{|\.}}..% |
|00000080| 2d 2d 2d 20 4c 69 6d 62 | 6f 20 74 65 78 74 20 66 |--- Limb|o text f|
|00000090| 72 6f 6d 20 40 6c 20 2d | 2d 2d 0a 5c 64 65 66 5c |rom @l -|--.\def\|
|000000a0| 78 28 23 31 29 7b 78 5e | 7b 23 31 7d 7d 0a 5c 64 |x(#1){x^|{#1}}.\d|
|000000b0| 65 66 5c 79 28 23 31 29 | 7b 79 5f 7b 23 31 7d 7d |ef\y(#1)|{y_{#1}}|
|000000c0| 0a 5c 64 65 66 5c 7a 28 | 23 31 2c 23 32 29 7b 7a |.\def\z(|#1,#2){z|
|000000d0| 5e 7b 23 31 7d 7b 7d 5f | 7b 23 32 7d 7d 0a 5c 6c |^{#1}{}_|{#2}}.\l|
|000000e0| 65 74 5c 57 41 52 52 41 | 59 5c 57 53 55 42 0a 0a |et\WARRA|Y\WSUB..|
|000000f0| 25 20 2d 2d 2d 20 42 65 | 67 69 6e 6e 69 6e 67 20 |% --- Be|ginning |
|00000100| 6f 66 20 75 73 65 72 27 | 73 20 6c 69 6d 62 6f 20 |of user'|s limbo |
|00000110| 73 65 63 74 69 6f 6e 20 | 2d 2d 2d 0a 0a 0a 0a 0a |section |---.....|
|00000120| 5c 57 4e 31 2e 20 20 41 | 52 52 41 59 20 50 52 4f |\WN1. A|RRAY PRO|
|00000130| 43 45 53 53 49 4e 47 2e | 20 20 54 68 69 73 20 65 |CESSING.| This e|
|00000140| 78 61 6d 70 6c 65 20 64 | 65 6d 6f 6e 73 74 72 61 |xample d|emonstra|
|00000150| 74 65 73 20 74 77 6f 20 | 77 61 79 73 20 6f 66 20 |tes two |ways of |
|00000160| 62 65 61 75 74 69 66 79 | 69 6e 67 0a 61 72 72 61 |beautify|ing.arra|
|00000170| 79 20 72 65 66 65 72 65 | 6e 63 65 73 20 69 6e 20 |y refere|nces in |
|00000180| 5c 46 6f 72 74 72 61 6e | 5c 20 61 6e 64 7e 43 2e |\Fortran|\ and~C.|
|00000190| 20 20 50 61 72 65 6e 74 | 68 65 73 69 7a 65 64 20 | Parent|hesized |
|000001a0| 72 65 66 65 72 65 6e 63 | 65 73 20 63 61 6e 20 62 |referenc|es can b|
|000001b0| 65 0a 6f 76 65 72 6c 6f | 61 64 65 64 20 77 69 74 |e.overlo|aded wit|
|000001c0| 68 20 74 68 65 20 60 5c | 2e 7b 40 57 7d 27 7e 63 |h the `\|.{@W}'~c|
|000001d0| 6f 6d 6d 61 6e 64 2c 20 | 61 73 20 66 6f 6c 6c 6f |ommand, |as follo|
|000001e0| 77 73 3a 0a 0a 5c 57 59 | 20 5c 57 50 5c 57 57 57 |ws:..\WY| \WP\WWW|
|000001f0| 3a 3a 5c 7c 78 20 24 7b | 7d 5c 2e 7b 5c 5c 78 7d |::\|x ${|}\.{\\x}|
|00000200| 7b 7d 24 5c 35 0a 5c 57 | 63 7b 20 52 65 70 6c 61 |{}$\5.\W|c{ Repla|
|00000210| 63 65 20 72 65 66 65 72 | 65 6e 63 65 73 20 74 6f |ce refer|ences to|
|00000220| 7e 5c 57 73 68 6f 72 74 | 7b 78 7d 20 62 79 20 74 |~\Wshort|{x} by t|
|00000230| 68 65 20 6d 61 63 72 6f | 7e 5c 2e 7b 5c 5c 78 7d |he macro|~\.{\\x}|
|00000240| 2e 7d 5c 70 61 72 0a 20 | 5c 57 50 5c 57 57 57 3a |.}\par. |\WP\WWW:|
|00000250| 3a 5c 7c 79 20 24 7b 7d | 5c 2e 7b 5c 5c 79 7d 7b |:\|y ${}|\.{\\y}{|
|00000260| 7d 24 5c 70 61 72 0a 20 | 5c 57 50 5c 57 57 57 3a |}$\par. |\WP\WWW:|
|00000270| 3a 5c 7c 7a 20 24 7b 7d | 5c 2e 7b 5c 5c 7a 7d 7b |:\|z ${}|\.{\\z}{|
|00000280| 7d 24 5c 57 59 5c 70 61 | 72 0a 20 24 5c 57 50 5c |}$\WY\pa|r. $\WP\|
|00000290| 57 6c 3a 3a 5c 2e 7b 22 | 5c 5c 5c 5c 64 65 66 5c |Wl::\.{"|\\\\def\|
|000002a0| 5c 5c 5c 78 28 5c 23 31 | 29 5c 7b 78 5c 5e 5c 7b |\\\x(\#1|)\{x\^\{|
|000002b0| 5c 23 31 5c 7d 5c 7d 22 | 7d 7b 7d 24 5c 35 0a 5c |\#1\}\}"|}{}$\5.\|
|000002c0| 57 63 7b 20 43 6f 6e 74 | 72 61 76 61 72 69 61 6e |Wc{ Cont|ravarian|
|000002d0| 74 20 69 6e 64 65 78 2e | 7d 5c 70 61 72 0a 20 24 |t index.|}\par. $|
|000002e0| 5c 57 50 5c 57 6c 3a 3a | 5c 2e 7b 22 5c 5c 5c 5c |\WP\Wl::|\.{"\\\\|
|000002f0| 64 65 66 5c 5c 5c 5c 79 | 28 5c 23 31 29 5c 7b 79 |def\\\\y|(\#1)\{y|
|00000300| 5c 5f 5c 7b 5c 23 31 5c | 7d 5c 7d 22 7d 7b 7d 24 |\_\{\#1\|}\}"}{}$|
|00000310| 5c 35 0a 5c 57 63 7b 20 | 43 6f 76 61 72 69 61 6e |\5.\Wc{ |Covarian|
|00000320| 74 20 69 6e 64 65 78 2e | 7d 5c 70 61 72 0a 20 24 |t index.|}\par. $|
|00000330| 5c 57 50 5c 57 6c 3a 3a | 5c 2e 7b 22 5c 5c 5c 5c |\WP\Wl::|\.{"\\\\|
|00000340| 64 65 66 5c 5c 5c 5c 7a | 28 5c 23 31 5c 31 5c 23 |def\\\\z|(\#1\1\#|
|00000350| 32 29 5c 7b 7a 5c 5e 5c | 7b 5c 23 31 5c 7d 5c 7b |2)\{z\^\|{\#1\}\{|
|00000360| 5c 7d 5c 5f 5c 7b 5c 23 | 32 5c 7d 5c 7d 22 7d 7b |\}\_\{\#|2\}\}"}{|
|00000370| 7d 24 5c 35 0a 5c 57 63 | 7b 20 4d 69 78 65 64 20 |}$\5.\Wc|{ Mixed |
|00000380| 69 6e 64 69 63 65 73 2e | 7d 5c 57 59 5c 70 61 72 |indices.|}\WY\par|
|00000390| 0a 5c 66 69 20 25 20 45 | 6e 64 20 6f 66 20 6d 6f |.\fi % E|nd of mo|
|000003a0| 64 75 6c 65 20 31 0a 0a | 5c 57 4d 32 2e 20 42 72 |dule 1..|\WM2. Br|
|000003b0| 61 63 6b 65 74 65 64 20 | 61 72 72 61 79 20 72 65 |acketed |array re|
|000003c0| 66 65 72 65 6e 63 65 73 | 20 61 72 65 20 61 63 74 |ferences| are act|
|000003d0| 69 76 61 74 65 64 20 62 | 79 20 74 68 65 20 60 5c |ivated b|y the `\|
|000003e0| 2e 7b 2d 57 5b 7d 27 7e | 63 6f 6d 6d 61 6e 64 2e |.{-W[}'~|command.|
|000003f0| 0a 28 49 6e 20 5c 46 6f | 72 74 72 61 6e 5c 20 5c |.(In \Fo|rtran\ \|
|00000400| 46 54 41 4e 47 4c 45 5c | 20 61 6c 77 61 79 73 20 |FTANGLE\| always |
|00000410| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 72 65 |automati|cally re|
|00000420| 70 6c 61 63 65 73 20 62 | 72 61 63 6b 65 74 73 20 |places b|rackets |
|00000430| 62 79 0a 70 61 72 65 6e | 74 68 65 73 65 73 2e 29 |by.paren|theses.)|
|00000440| 20 20 4f 6e 65 20 63 61 | 6e 20 72 65 64 65 66 69 | One ca|n redefi|
|00000450| 6e 65 20 74 68 65 20 5c | 2e 7b 5c 5c 57 41 52 52 |ne the \|.{\\WARR|
|00000460| 41 59 7d 20 6d 61 63 72 | 6f 20 74 6f 20 67 65 74 |AY} macr|o to get|
|00000470| 20 73 70 65 63 69 61 6c | 20 65 66 66 65 63 74 73 | special| effects|
|00000480| 2e 0a 0a 5c 57 59 20 24 | 5c 57 50 5c 57 6c 3a 3a |...\WY $|\WP\Wl::|
|00000490| 5c 2e 7b 22 5c 5c 5c 5c | 6c 65 74 5c 5c 5c 5c 57 |\.{"\\\\|let\\\\W|
|000004a0| 41 52 52 41 59 5c 5c 5c | 5c 57 53 55 42 22 7d 7b |ARRAY\\\|\WSUB"}{|
|000004b0| 7d 24 5c 35 0a 5c 57 43 | 7b 20 53 75 62 73 63 72 |}$\5.\WC|{ Subscr|
|000004c0| 69 70 74 20 62 72 61 63 | 6b 65 74 65 64 20 69 6e |ipt brac|keted in|
|000004d0| 64 69 63 65 73 2e 20 20 | 28 5c 2e 7b 5c 5c 57 53 |dices. |(\.{\\WS|
|000004e0| 55 42 7d 7e 69 73 20 64 | 65 66 69 6e 65 64 20 69 |UB}~is d|efined i|
|000004f0| 6e 20 5c 2e 7b 66 77 65 | 62 6d 61 63 2e 77 65 62 |n \.{fwe|bmac.web|
|00000500| 7d 2e 29 0a 7d 5c 57 59 | 5c 70 61 72 0a 5c 66 69 |}.).}\WY|\par.\fi|
|00000510| 20 25 20 45 6e 64 20 6f | 66 20 6d 6f 64 75 6c 65 | % End o|f module|
|00000520| 20 32 0a 0a 5c 57 4d 33 | 2e 20 49 6e 20 74 68 65 | 2..\WM3|. In the|
|00000530| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 74 65 73 74 2c | followi|ng test,|
|00000540| 20 63 61 72 65 66 75 6c | 6c 79 20 6e 6f 74 65 20 | careful|ly note |
|00000550| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 20 69 |the diff|erence i|
|00000560| 6e 20 74 79 70 65 20 73 | 69 7a 65 20 62 65 74 77 |n type s|ize betw|
|00000570| 65 65 6e 0a 74 68 65 20 | 72 65 73 75 6c 74 73 20 |een.the |results |
|00000580| 6f 66 20 70 61 72 65 6e | 74 68 65 73 69 7a 65 64 |of paren|thesized|
|00000590| 20 73 75 62 73 63 72 69 | 70 74 73 20 61 6e 64 20 | subscri|pts and |
|000005a0| 62 72 61 63 6b 65 74 65 | 64 20 6f 6e 65 73 2e 20 |brackete|d ones. |
|000005b0| 20 54 6f 20 66 75 6c 6c | 79 0a 75 6e 64 65 72 73 | To full|y.unders|
|000005c0| 74 61 6e 64 20 77 68 79 | 20 74 68 69 73 20 6f 63 |tand why| this oc|
|000005d0| 63 75 72 73 2c 20 73 74 | 75 64 79 20 74 68 65 20 |curs, st|udy the |
|000005e0| 64 65 66 69 6e 69 74 69 | 6f 6e 20 6f 66 20 74 68 |definiti|on of th|
|000005f0| 65 20 5c 2e 7b 5c 5c 57 | 58 41 7d 7e 6d 61 63 72 |e \.{\\W|XA}~macr|
|00000600| 6f 20 69 6e 0a 5c 2e 7b | 66 77 65 62 6d 61 63 2e |o in.\.{|fwebmac.|
|00000610| 77 65 62 7d 2e 0a 0a 5c | 57 59 5c 57 50 20 5c 26 |web}...\|WY\WP \&|
|00000620| 7b 70 72 6f 67 72 61 6d | 7d 20 5c 31 5c 5c 7b 6d |{program|} \1\\{m|
|00000630| 61 69 6e 7d 5c 57 49 4e | 31 7b 30 7d 5c 32 5c 31 |ain}\WIN|1{0}\2\1|
|00000640| 5c 37 0a 5c 57 43 7b 20 | 54 65 73 74 20 6f 66 20 |\7.\WC{ |Test of |
|00000650| 6f 76 65 72 6c 6f 61 64 | 65 64 20 69 64 65 6e 74 |overload|ed ident|
|00000660| 69 66 69 65 72 73 2e 20 | 7d 5c 36 0a 24 7b 7d 5c |ifiers. |}\6.${}\|
|00000670| 78 28 5c 7c 69 29 24 5c | 36 0a 24 7b 7d 5c 79 28 |x(\|i)$\|6.${}\y(|
|00000680| 5c 7c 6a 29 24 5c 36 0a | 24 7b 7d 5c 7a 28 5c 7c |\|j)$\6.|${}\z(\||
|00000690| 69 2c 5c 33 39 5c 7c 6a | 29 7b 7d 24 5c 37 0a 5c |i,\39\|j|){}$\7.\|
|000006a0| 57 43 7b 20 42 72 61 63 | 6b 65 74 65 64 20 69 6e |WC{ Brac|keted in|
|000006b0| 64 65 78 69 6e 67 2e 20 | 7d 5c 36 0a 24 7b 7d 5c |dexing. |}\6.${}\|
|000006c0| 7c 41 5c 57 58 41 7b 5c | 7c 69 7d 24 5c 36 0a 24 ||A\WXA{\||i}$\6.$|
|000006d0| 7b 7d 5c 7c 42 5c 57 58 | 41 7b 5c 5c 7b 6a 5c 5f |{}\|B\WX|A{\\{j\_|
|000006e0| 70 61 72 7d 7d 24 5c 36 | 0a 24 7b 7d 5c 7c 43 5c |par}}$\6|.${}\|C\|
|000006f0| 57 58 41 7b 5c 5c 7b 69 | 6e 64 65 78 7d 2c 5c 33 |WXA{\\{i|ndex},\3|
|00000700| 39 5c 5c 7b 6a 5c 5f 70 | 61 72 7d 7d 24 5c 36 0a |9\\{j\_p|ar}}$\6.|
|00000710| 24 7b 7d 5c 7c 44 5c 57 | 58 41 7b 5c 5c 7b 69 6e |${}\|D\W|XA{\\{in|
|00000720| 64 65 78 7d 5c 57 58 41 | 7b 5c 5c 7b 6a 5c 5f 70 |dex}\WXA|{\\{j\_p|
|00000730| 61 72 7d 2b 5c 57 4f 7b | 31 7d 7d 7d 24 5c 36 0a |ar}+\WO{|1}}}$\6.|
|00000740| 24 7b 7d 5c 7c 45 5c 57 | 58 41 7b 5c 57 4f 7b 31 |${}\|E\W|XA{\WO{1|
|00000750| 7d 2b 5c 57 4f 7b 32 7d | 5c 61 73 74 5c 7c 69 7d |}+\WO{2}|\ast\|i}|
|00000760| 7b 7d 24 5c 37 0a 5c 57 | 43 7b 20 42 72 61 63 6b |{}$\7.\W|C{ Brack|
|00000770| 65 74 73 20 61 72 65 6e | 27 74 20 61 63 74 69 76 |ets aren|'t activ|
|00000780| 65 20 69 6e 73 69 64 65 | 20 73 74 72 69 6e 67 73 |e inside| strings|
|00000790| 2e 20 7d 5c 36 0a 24 7b | 7d 5c 2e 7b 27 61 5b 62 |. }\6.${|}\.{'a[b|
|000007a0| 5d 63 28 64 29 27 7d 7b | 7d 24 5c 32 5c 37 0a 5c |]c(d)'}{|}$\2\7.\|
|000007b0| 26 7b 65 6e 64 7d 5c 37 | 0a 5c 4c 41 4e 47 55 41 |&{end}\7|.\LANGUA|
|000007c0| 47 45 7b 43 7d 5c 35 0a | 5c 57 43 7b 20 4e 6f 77 |GE{C}\5.|\WC{ Now|
|000007d0| 2c 20 61 6e 20 65 78 61 | 6d 70 6c 65 20 66 72 6f |, an exa|mple fro|
|000007e0| 6d 20 43 2e 20 7d 5c 36 | 0a 24 5c 7c 61 5c 57 58 |m C. }\6|.$\|a\WX|
|000007f0| 41 7b 5c 57 4f 7b 31 7d | 7d 5c 57 58 41 7b 5c 57 |A{\WO{1}|}\WXA{\W|
|00000800| 4f 7b 32 7d 7d 5c 57 58 | 41 7b 5c 7c 6b 7d 3b 7b |O{2}}\WX|A{\|k};{|
|00000810| 7d 24 5c 35 0a 5c 57 63 | 7b 20 49 6e 20 74 68 65 |}$\5.\Wc|{ In the|
|00000820| 20 73 6f 75 72 63 65 2c | 20 74 68 69 73 20 69 73 | source,| this is|
|00000830| 20 60 60 5c 2e 7b 61 5b | 31 5d 5b 32 5d 5b 6b 5d | ``\.{a[|1][2][k]|
|00000840| 7d 27 27 2e 7d 5c 57 59 | 5c 70 61 72 0a 5c 66 69 |}''.}\WY|\par.\fi|
|00000850| 20 25 20 45 6e 64 20 6f | 66 20 6d 6f 64 75 6c 65 | % End o|f module|
|00000860| 20 33 0a 0a 5c 57 4e 34 | 2e 20 20 49 4e 44 45 58 | 3..\WN4|. INDEX|
|00000870| 2e 0a 5c 66 69 20 25 20 | 45 6e 64 20 6f 66 20 6d |..\fi % |End of m|
|00000880| 6f 64 75 6c 65 20 34 0a | 0a 5c 69 6e 70 75 74 20 |odule 4.|.\input |
|00000890| 64 65 6d 6f 34 2e 6e 64 | 78 0a 5c 69 6e 70 75 74 |demo4.nd|x.\input|
|000008a0| 20 64 65 6d 6f 34 2e 6d | 64 73 0a 0a 5c 57 69 6e | demo4.m|ds..\Win|
|000008b0| 66 6f 7b 22 66 77 65 61 | 76 65 20 2e 2f 64 65 6d |fo{"fwea|ve ./dem|
|000008c0| 6f 34 20 2d 7a 64 65 6d | 6f 73 2e 73 74 79 20 2d |o4 -zdem|os.sty -|
|000008d0| 3d 64 65 6d 6f 34 2e 74 | 65 78 22 7d 20 20 7b 22 |=demo4.t|ex"} {"|
|000008e0| 2e 2f 64 65 6d 6f 34 2e | 77 65 62 22 7d 20 7b 28 |./demo4.|web"} {(|
|000008f0| 6e 6f 6e 65 29 7d 0a 20 | 7b 46 4f 52 54 52 41 4e |none)}. |{FORTRAN|
|00000900| 7d 0a 0a 5c 57 63 6f 6e | 0a |}..\Wcon|. |
+--------+-------------------------+-------------------------+--------+--------+